home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / maximus / stbar20.zip / GETDESC.BAT < prev    next >
DOS Batch File  |  1996-04-11  |  2KB  |  93 lines

  1. @echo off
  2. rem ====--=StarBar V2.00=--===--=DIZ & SDN.ID Descriptor File Grabber=--====
  3. rem          DOS BAT
  4. rem
  5. rem ====--=Usage=--====
  6. rem
  7. rem first parameter : StarBar Work Path
  8. rem second parameter : Full path and Filename to be examined
  9. rem
  10. rem ========================================================================
  11. rem
  12.  
  13. rem     After each node has used StarBar at least once, the next line may be
  14. rem     removed...
  15.  
  16. md %1
  17.  
  18. cd %1
  19.  
  20. if exist %1\*.arj goto ARJ
  21. if exist %1\*.zip goto ZIP
  22. if exist %1\*.lzh goto LHA
  23. if exist %1\*.rar goto UNRAR
  24. if exist %1\*.arc goto PKUNPAK
  25. if exist %1\*.zoo goto ZOO
  26. if exist %1\*.pak goto PAK
  27.  
  28. rem    Add any other archivers you wish to support here, then follow the
  29. rem    examples below on extracting the info...
  30. rem    Be sure to include any switches which OVERRIDE EMBEDDED PATHS!
  31.  
  32. goto end
  33.  
  34. :ARJ
  35. arj e -y %2 file_id.diz
  36. if exist %1\file_id.diz ren %1\file_id.diz descfile.txt
  37. if exist %1\descfile.txt goto end
  38. arj e -y %2 sdn.id
  39. if exist %1\sdn.id ren %1\sdn.id descfile.txt
  40. goto end
  41.  
  42. :ZIP
  43. pkunzip -o %2 file_id.diz
  44. if exist %1\file_id.diz ren %1\file_id.diz descfile.txt
  45. if exist %1\descfile.txt goto end
  46. pkunzip -o %2 sdn.id
  47. if exist %1\sdn.id ren %1\sdn.id descfile.txt
  48. goto end
  49.  
  50. :LHA
  51. lha e /m+c+ %2 file_id.diz
  52. if exist %1\file_id.diz ren %1\file_id.diz descfile.txt
  53. if exist %1\descfile.txt goto end
  54. lha e /m+c+ %2 sdn.id
  55. if exist %1\sdn.id ren %1\sdn.id descfile.txt
  56. goto end
  57.  
  58. :UNRAR
  59. unrar e -o+ %2 file_id.diz
  60. if exist %1\file_id.diz ren %1\file_id.diz descfile.txt
  61. if exist %1\descfile.txt goto end
  62. unrar e -o+ %2 sdn.id
  63. if exist %1\sdn.id ren %1\sdn.id descfile.txt
  64. goto end
  65.  
  66. :PKUNPAK
  67. pkunpak -r %2 file_id.diz
  68. if exist %1\file_id.diz ren %1\file_id.diz descfile.txt
  69. if exist %1\descfile.txt goto end
  70. pkunpak -r %2 sdn.id
  71. if exist %1\sdn.id ren %1\sdn.id descfile.txt
  72. goto end
  73.  
  74. :ZOO
  75. zoo e %2 file_id.diz
  76. if exist %1\file_id.diz ren %1\file_id.diz descfile.txt
  77. if exist %1\descfile.txt goto end
  78. zoo e %2 sdn.id
  79. if exist %1\sdn.id ren %1\sdn.id descfile.txt
  80. goto end
  81.  
  82. :PAK
  83. pak e/WA %2 file_id.diz
  84. if exist %1\file_id.diz ren %1\file_id.diz descfile.txt
  85. if exist %1\descfile.txt goto end
  86. pak e/WA %2 sdn.id
  87. if exist %1\sdn.id ren %1\sdn.id descfile.txt
  88. goto end
  89.  
  90. :end
  91. rem =--=If no descriptor is found, StarBar will expand the full original=--=
  92. rem =--=FILES.BBS description and display that...=--=
  93.